Firstly spectral lines means the spectrum the band of 7 colors.
The spectral lines are formed because when the light passes through
tough medium it passes through the medium but the white light gets
disintegrated into seven colors . The band includes the colors
violet, indigo, blue, green ,yellow orange , red.